package com.rdxer.dataview;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.persistence.Id;


@Data
public class AccountDV {

    @Id
    private String id;

    private String username;

    private String displayName;
    private String email;
    private String tel;
    private String gender;


    private String avatar;
    @JsonSerialize(using = ToStringSerializer.class)
    // 注册时间
    private Long createdDate;
    @JsonSerialize(using = ToStringSerializer.class)
    // 注销时间
    private Long disabledDate;

    @JsonSerialize(using = ToStringSerializer.class)
    // 最后一次登陆时间
    private Long lastLoginDate;
    @JsonSerialize(using = ToStringSerializer.class)
    // 最后一次更新时间
    private Long updateDate;
    @JsonSerialize(using = ToStringSerializer.class)
    // 入职时间
    private Long entryDate;

    private String[] roles;

}